<body leftmargin="0" rightmargin="0" topmargin="0">
<!--application header-->
<? include "header.inc.php"; ?>
<!--EOapplication header-->

<!--left menu start-->
<div style="float: left; width:<?=$MENU_WIDTH?>px; height:100%; margin-right:20px;">
<?
include "menu.inc.php";
?>
</div>
<!--left menu end-->

<!--Main start here-->
<br>
<table border="0" cellpadding="2" cellspacing="0" width="750" class="tableMainBodyFont">
  <tbody>
    <tr>
      <td width="3%" align="center" bgcolor="#aaaaaa" style=" border-top-style:solid;border-top-width:1px;"><strong>Laporan </strong></td>
    </tr>
	
	<tr>
	  <td align="center" style=" font-weight: 600;"><br></td>
	</tr>
  </tbody>
</table>

<table border="0" cellpadding="2" cellspacing="0" width="750" class="tableMainBodyFont">
  <tbody>
    <tr>
      <td width="3%" align="right">
	  <!--a href="export.php?act=visitor_daily_statistic&extype=xls&year=<?=$year?>&month=<?=$month?>&day=<?=$day?>&the_date=<?=$the_date?>" title="Export to excel"><img src="images/excel.gif" alt="excel" border=0></a> <a href="export.php?act=visitor_daily_statistic&extype=csv&year=<?=$year?>&month=<?=$month?>&day=<?=$day?>&the_date=<?=$the_date?>" title="Export to csv"><img src="images/csv.gif" alt="csv" border=0></a> <a href="javascript: SM_WinPrint('<?=($output=='statistic')?"graph":"export"?>.php?act=<?=$act?>&extype=printer&year=<?=$year?>&month=<?=$month?>&day=<?=$day?>&the_date=<?=$the_date?>','popup','scrollbars=yes,width=700,height=600');" title="Print"><img src="images/print.gif" alt="print" border=0></a--></td>
    </tr>
  </tbody>
</table>
<table width="750" border="0" cellspacing="5" class="tableMainBodyFont">
  <tr align="">
    <td colspan="2" align="center"><span style=" font-weight: 600;">
      <?
include "_spk_tahun_menu.php";
?>
    </span></td>
  </tr>
  <tr align="">
    <td width="60" align="center">&nbsp;</td>
    <td align="center">

<img src="graph.php?act=<?=$_REQUEST['act']?>&year=<?=$year?>&month=<?=$month?>&day=<?=$day?>&the_date=<?=$the_date?>">	</td>
  </tr>
</table>
<br>
<br>
<table width="750" border="0" cellspacing="5" class="tableMainBodyFont">
  <tr align="">
    <td colspan="2" align="center"><span style=" font-weight: 600;">
<form name="date_form" id="date_form" method="post" action="?act=<?=$_REQUEST['act']?>&output=statistic">

		  Bilangan Sekolah Mengikut Jenis dan Negeri Pada
		  <span id="y_section" style=" visibility:<?=(($show_range==2)||($show_range==3))?"visible":"visible"?>">
		      Tahun 
		      <select name="year" id="year" onchange="">
              <?
				$combo   = new GUI();
				$options = getOptionsFromTable('vw_tahun','the_tahun','tahun');
				//$options = $_years;
				echo $combo->printCombo2($options, "year",false, "$year",false,0);

			  ?>
              </select>
  </span>
			  
		      <input type="submit" name="submit_btn" id="submit_btn" value="Papar" style="visibility:<?=($show_range==0)?"visible":"visible"?>" class="button">
</form>
    </span></td>
  </tr>
  <tr align="">
    <td width="60" align="center">&nbsp;</td>
    <td align="center"><img src="graph.php?act=<?=$_REQUEST['act']."_dan_jenis"?>&year=<?=$year?>&month=<?=$month?>&day=<?=$day?>&the_date=<?=$the_date?>"> </td>
  </tr>
  <tr align="">
    <td align="center">&nbsp;</td>
    <td align="center">&nbsp;</td>
  </tr>
  <tr align="">
    <td align="center">&nbsp;</td>
    <td align="center"><b>Peratusan Bilangan  Sekolah Mengikut Negeri </b><br>
        <img src="graph.php?act=<?=$_REQUEST['act']?>_pie"></td>
  </tr>
</table>
<br>
<br></td>

<!--Main end here-->
</body>

<script>
function goYearReport() {
	y = document.getElementById('select_year').value;
	m = document.getElementById('select_month').value;
	g = document.getElementById('graph')
	//location = '<?=$_SERVER['PHP_SELF']?>' + '?year=' + y + '&month=' + m;
	g.src = 'graph.php?act=<?=$act?>' + '&year=' + y + '&month=' + m;
}
</script>	
